package com.shefenqi.domain;

import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * Created by WangZhe on 2018年08月24日.
 */
@Getter
@Setter
public class Product extends BaseDomain {
    public static final int HIDDEN = 1;//待售
    public static final int NORMAL = 2;//正常不打折
    public static final int PRESELL = 3;//预售
    public static final int ON_SALL = 4;//打折销售
    public static final int OUT_OF_STOCK = 5;//售罄
    public static final int STOP_SALL = 6;//停售
    private String name;//商品名字
    private String code;//商品编码
    private Catalog catalog;//商品对应的商品分类
    private Long brandId;//商品品牌id
    private String brandName;//商品品牌名字
    private BigDecimal basePrice;//商品指导价 基础价
    private Date createdDate;//商品创建时间
    private Date lastModifiedDate;//商品最后修改时间
    private List<ProductImage> images;//商品图片集合
    private String keyword;//商品关键字
    private String label;//商品标签 //[延禧攻略] 等
    private int state;//商品售卖状态
    private Long bitState = 0L;//商品额外的动态状态 活动状态 热销中等
    private int soldNumber;//已售数量
}
